#ifndef PATHSETTINGS_H
#define PATHSETTINGS_H

#include <QDialog>
#include <QLineEdit>
#include <QPushButton>
#include <QSettings>

class PathSettings : public QDialog
{
    Q_OBJECT

public:
    explicit PathSettings(QWidget *parent = nullptr);

    QString getKnownFacesDir() const;
    QString getScanFolder() const;
    void setKnownFacesDir(const QString &dir);
    void setScanFolder(const QString &folder);

private slots:
    void selectKnownFacesDir();
    void selectScanFolder();
    void saveSettings();

private:
    void loadSettings();

    QLineEdit *knownFacesDirInput;
    QLineEdit *scanFolderInput;
    QPushButton *knownFacesDirButton;
    QPushButton *scanFolderButton;
    QPushButton *saveButton;
    QSettings settings;
};

#endif // PATHSETTINGS_H
